#ifndef NORMAL_UDP_H
#define NORMAL_UDP_H

#include <stdint.h>
#include <stdio.h>

#pragma pack(1)

typedef struct  {

        uint16_t  decimal;
        char      contract_id[8];
        uint32_t  update_time;
        uint32_t  update_time_usec;

        uint32_t  last_price;
        uint32_t  volumn;
        uint32_t  open_interest;
        uint64_t  turnover;
        

        uint64_t  bid5_qty:12;          // 订单数
        uint64_t  bid5_volumn:20;       // 委托量
        uint64_t  bid5_price:32;        // 价格

        uint64_t  bid4_qty:12;
        uint64_t  bid4_volumn:20;
        uint64_t  bid4_price:32;

        uint64_t  bid3_qty:12;
        uint64_t  bid3_volumn:20;
        uint64_t  bid3_price:32;

        uint64_t  bid2_qty:12;
        uint64_t  bid2_volumn:20;
        uint64_t  bid2_price:32;

        uint64_t  bid1_qty:12;
        uint64_t  bid1_volumn:20;
        uint64_t  bid1_price:32;

        uint64_t  ask1_qty:12;
        uint64_t  ask1_volumn:20;
        uint64_t  ask1_price:32;

        uint64_t  ask2_qty:12;
        uint64_t  ask2_volumn:20;
        uint64_t  ask2_price:32;

        uint64_t  ask3_qty:12;
        uint64_t  ask3_volumn:20;
        uint64_t  ask3_price:32;

        uint64_t  ask4_qty:12;
        uint64_t  ask4_volumn:20;
        uint64_t  ask4_price:32;

        uint64_t  ask5_qty:12;
        uint64_t  ask5_volumn:20;
        uint64_t  ask5_price:32;

} st_best_depth_update;

#pragma pack()

#endif
